import tkinter as tk

top = tk.Tk()
top.title('Hello Tk')
ipx = 2
top.resizable(False, False)
frames = []
for i in range(9):
    f = tk.Frame(top)
    f.pack(side = tk.TOP, fill = tk.X)
    frames.append(f)

for i in range(1, 10):
    for j in range(1, i + 1):
        info = str(j) + ' x ' + str(i) + ' = ' + str(i * j)
        # label = tk.Label(frames[i - 1], width = 9, text = info, relief = tk.SUNKEN, anchor='w')
        label = tk.Label(frames[i - 1], width = 10, text = info, relief = tk.SUNKEN)
        label.pack(side = tk.LEFT, ipadx = ipx, padx = 1)

top.mainloop()
